﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

namespace CRM.Web.Admin
{
    public class Helper
    {
        /// <summary>
        /// 是否以后台帐户登录了
        /// </summary>
        /// <returns></returns>
        public static bool Logined
        {
            get
            {
                return HttpContext.Current.User.Identity.IsAuthenticated;
            }
        }

        public static string GetAppKeyValue(string key)
        {
            return ConfigurationManager.AppSettings[key];
        }

        //public static string GetQueryValue(string key)
        //{
        //    return Request.QueryString["ReturnUrl"];
        //}
    }
}